﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_ueditor_dialogs_image_upload : System.Web.UI.Page
{
    public String Url = "";

    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {

            if (!string.IsNullOrEmpty(Request.QueryString["url"]))
            {

                Url = filter(Request.QueryString["url"]);

            }

        }

    }



    ///<summary>

    /// 字符过滤

    ///</summary>

    ///<param name="Url"></param>

    ///<returns></returns>

    public String filter(String Url)
    {

        Url = Url.Replace("&", "&amp;");

        Url = Url.Replace("'", "&qpos;");

        Url = Url.Replace("\"", "&quot;");

        Url = Url.Replace("<", "&lt;");

        Url = Url.Replace(">", "&gt;");

        return Url;

    }
}
